package com.vca.common.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author Li
 * @description 礼品卡商品响应类
 * @date 2023-08-29 14:41
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CardProductResponse对象", description="礼品卡商品响应类")
public class CardProductResponse {

    @ApiModelProperty(value = "商品主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "面值（录入的商品非礼品卡时，不需要填写面值）")
    private BigDecimal faceValue;

    @ApiModelProperty(value = "选择使用范围 0=课程 1=讲座 2=展览")
    private Integer useAround;

    @ApiModelProperty(value = "库存")
    private Integer stock;
}
